import { defineStore } from "pinia";
import { reactive, ref } from "vue";
const useUserStore = defineStore('user', {
    state: () => {
        const userInfo = ref([])
        const token = ref('')
        const addressDetail = '杭州市西湖区 黄龙万科中心'
        const address = reactive([
        ])
        // address.push({
        //     address: '',
        //     name: '',
        //     tel: ''
        // })
        return {
            userInfo,
            token,
            address,
            addressDetail
        }

    },
    persist: {
        storage: sessionStorage
    }
})
export default useUserStore